<ion-header *ngIf="!isFromMainPage">
    <ion-navbar>
        <ion-title>{{title}}</ion-title>
        <ion-buttons end *ngIf="isAdmin">
          <button ion-button (click)="moreOp()">操作</button>
        </ion-buttons>
    </ion-navbar>
</ion-header>
<ion-content>
  <!--<ion-refresher (ionRefresh)="doRefresh($event)">-->
    <!--<ion-refresher-content pullingText="下拉刷新" refreshingText="加载中..."></ion-refresher-content>-->
  <!--</ion-refresher>-->
  <ion-list>
    <ion-item class="analysis-desc" *ngFor="let dl of datasList;" (click)="goDetail(dl)">
      <ng-container *ngIf="groupIndex==0">
        <ion-row>
          <ion-col  class="left" width-20>
            <div>{{dl.reporttypename}}</div>
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.title}}</span>
              <span class="smtitle">{{dl.submittime}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

      <ng-container *ngIf="groupIndex==1">
        <ion-row>
          <ion-col width-20 class="left">
            {{dl.reportnumbers}}
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.sname}}</span>
              <span class="smtitle">{{dl.scode}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

      <ng-container *ngIf="groupIndex==2">
        <ion-row>
          <ion-col width-20 class="left">
            {{dl.reportnumbers}}
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.reportnumbers}}</span>
              <span class="smtitle">{{dl.reportnumbers}}</span>
            </ion-col>
            <ion-col class="rgt">
              <span class="smtitle">{{dl.reportnumbers}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

      <ng-container *ngIf="groupIndex==3">
        <ion-row>
          <ion-col width-20 class="left">
            {{dl.scode}}
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.sname}}</span>
              <span class="smtitle">{{dl.recommenddate}}</span>
            </ion-col>
            <ion-col class="rgt">
              <span class="smtitle">{{dl.researchername}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

      <ng-container *ngIf="groupIndex==4">
        <ion-row>
          <ion-col width-20 class="left">
            {{dl.objid}}
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.sname}}</span>
              <span class="smtitle">{{dl.scode}}</span>
            </ion-col>
            <ion-col class="rgt">
              <span class="smtitle">{{dl.recommendtime}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

      <ng-container *ngIf="groupIndex==5">
        <ion-row>
          <ion-col width-20 class="left">
            {{dl.investrank}}
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.sname}}</span>
              <span class="smtitle">{{dl.scode}}</span>
            </ion-col>
            <ion-col class="rgt">
              <span class="smtitle">{{dl.commentdate}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

      <ng-container *ngIf="groupIndex==6">
        <ion-row>
          <ion-col width-20 class="left">
            {{dl.adjustmode}}
          </ion-col>
          <ion-col class="right" width-80>
            <ion-col class="lft">
              <span class="title">{{dl.sname}}</span>
              <span class="smtitle">{{dl.scode}}</span>
            </ion-col>
            <ion-col class="rgt">
              <span class="smtitle">{{dl.submittime}}</span>
            </ion-col>
          </ion-col>
        </ion-row>
      </ng-container>

    </ion-item>
  </ion-list>
  <ion-item-divider class='list-no-more-tips' color="light" [hidden]="isLoadMore">暂无更多数据...</ion-item-divider>
  <!--<ion-infinite-scroll (ionInfinite)="doInfinite($event)">-->
    <!--<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="加载更多数据...">-->
    <!--</ion-infinite-scroll-content>-->
  <!--</ion-infinite-scroll>-->
</ion-content>
